package com.bzyd.derby.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
public class PageObject<T> implements Serializable {
    private static final long serialVersionUID = 1536631092048817285L;
    /**
     * 当前页的页码值
     */
    private Integer pageCurrent;
    /**
     * 页面大小
     */
    private Integer pageSize;
    /**
     * 总行数(通过查询获得)
     */
    private Integer rowCount;
    /**
     * 总页数(通过计算获得)
     */
    private Integer pageCount;
    /**
     * 当前页记录
     */
    private List<T> records;

}
